/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetluc;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import javax.swing.*;

/**
 *
 * @author Lone_Wolf
 */
public class EcranPrincipal extends JPanel {

    private Fenetre fenetre;
    private EcranRecherche pnlRecherche;
    private Employe utilCourant;

    public EcranPrincipal(Fenetre fenetre, Employe utilCourant) throws IOException, ClassNotFoundException {
        this.fenetre = fenetre;
        this.utilCourant = utilCourant;

        fenetre.setTitle(fenetre.getTitle() + " --- Recherche");
        //fenetre.setSize(500, 500);
        fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        fenetre.setVisible(true);

        pnlRecherche = new EcranRecherche(fenetre);
        this.add(pnlRecherche);
    }
}
